﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Text;
using System.Web.Caching;

namespace Web
{
    public partial class pps : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }
        private string loadNavi()
        {
            DataTable dt = new TuKu.BLL.urlcate().GetList(" 1=1 order by id ").Tables[0];
            StringBuilder sb = new StringBuilder();
            sb.Append("<li><a href=\"/index.aspx\"><span>首页</span></a></li>\r\n");
            if (dt.Rows.Count > 0)
            {
                foreach (DataRow dr in dt.Rows)
                {
                    sb.Append("<li><a href=\"/piclist.aspx?id=" + dr["id"].ToString() + "\" title=\"" + dr["catename"].ToString() + "\"><span>" + dr["catename"].ToString() + "</span></a></li>\r\n");
                }
            }
            return sb.ToString();
        }
    }
}
